package org.example.interncandidate.controller.image;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import kotlin.Result;
import org.example.interncandidate.common.model.BaseResponse;
import org.example.interncandidate.model.image.vo.ImageVO;
import org.example.interncandidate.service.image.ImageService;
import org.example.interncandidate.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "验证码")
@RestController
@RequestMapping("/image")
public class ImageController {
    @Autowired
    private ImageService imageService;
    @ApiOperation("获取验证码信息")
    @RequestMapping("/captcha/info")
    public BaseResponse<ImageVO> getaCaptchaInfo() {
        return ResultUtil.success(imageService.generateCaptchaInfo());
    }
}
